//
//  main.m
//  01-signed和unsigned
//
//  Created by Jason on 15/9/22.
//  Copyright © 2015年 Jason. All rights reserved.
//

#import <Foundation/Foundation.h>

int main(int argc, const char * argv[]) {
    @autoreleasepool {
        /*
         
        // 4个字节
        int b = -10;
        int a = 10;
        
        // 8个字节
        long int c = 10;
        // 2个字节
        short int d = 10;
        
        // 有符号(+、-、0) 有正数和负数 可省略不写
        signed int e = 10;
        
        // 无符号(+、 0) 0或者正数 没有负数
        unsigned int f = 10;
        
         */
        
        /*
         
        long int == long
        short int  == short
        
        signed int == signed
        
        unsigned int = unsigned
        
        signed long int = signed long
        
        unsigned long int = unsigned long
        
        */
        
        NSString *str = @"jason哈哈";
        // leng 计算的是文字个数
        NSUInteger len = [str length];
        // %d %i 输出int类型的数据(正数、负数、0)
        // %zd %zi 输出unsigned类型的数据
        NSLog(@"len = %zd",len);
        
    }
    return 0;
}
